package com.dashuai.service.impl;

import com.dashuai.mapper.OrderMapper;
import com.dashuai.pojo.Order;
import com.dashuai.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class OrderServiceImpl implements OrderService {


    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order findById(Long orderId) {

        return orderMapper.findById(orderId);
    }

    @Override
    public Order findBySaveTimeCom(Long saveTimeCom) {

        Order order = orderMapper.findBySaveTimeCom(saveTimeCom);
        return order;
    }

    @Override
    public void createTable() {
        orderMapper.createTable();
    }

}
